package miao.demo.service.impl;

import miao.demo.dao.BookDao;
import miao.demo.service.BookService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

//@Component()
//衍生注解--@Service 业务层
@Service()
public class BookServiceImpl implements BookService {
    private BookDao bookDao;

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    @Override
    public void save() {
        bookDao.save();
        System.out.println("book service save....");
    }
}
